package com.bobochang.warehouse.service;

import com.bobochang.warehouse.dto.ContractReasonDto;
import com.bobochang.warehouse.dto.EginnerContractDto;
import com.bobochang.warehouse.dto.PurchaseReasonDto;
import com.bobochang.warehouse.entity.Contract;
import com.bobochang.warehouse.entity.Department;
import com.bobochang.warehouse.entity.Flow;
import com.bobochang.warehouse.entity.Result;
import com.bobochang.warehouse.page.Page;

import java.util.List;

/**
 * 工作流服务类
 */
public interface DepartmentService {
    Result saveDeparment(Department department);

    Result updateDepartment(Department department);

    void deleteDepartmentById(Integer departmentId);

    Result searchById(Integer departmentId);

    List<Department> selectAll();

    Page queryDepartmentPage(Page page, Department department);
}
